package my.senix.sc.servlet;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by lhs on 2018/11/26.
 */
@Slf4j
public class MyWebFilter implements Filter {

    private FilterConfig filterConfig;

    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        this.filterConfig = filterConfig;
    }

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("进入myfilter....exclusions:{}",
                filterConfig.getInitParameter("exclusions"));

        chain.doFilter(request, response);
    }

    @Override
    public void destroy() {

    }
}
